/*
 * test_graph.c
 *
 *  Created on: 12/05/2013
 *      Author: jose
 */


/*
 * tests.c
 *
 *  Created on: 25/04/2013
 *      Author: jose
 */

#include "../tests.h"
#include <stdio.h>

void
test_adj_list_create_with_urls()
{
	Graph_Adj_List * gr;

	String urls[] = {
			{"url1", 4},
			{"site2", 5},
			{"homepage3", 9},
			{"http4", 5}
	};

	gr = adj_list_create_with_urls(4, urls);

	adj_list_print_headnodes(gr);
}


void
test_headnode_add_node(Graph_Adj_List * gr, const String * url_from, const String * url_to)
{
	headnode_add_node(gr, url_from, url_to);

	adj_list_print(gr);
}


void
test_directed_graph(Graph_Adj_List * gr, Sessions * s, unsigned len)
{
	directed_graph(gr, s, len);

	adj_list_print(gr);
}
